package com.zhangxx.inventory.listener;
import com.zhangxx.inventory.thread.threadpool.ProcessThreadPool;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class InitListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        //创建内存队列绑定线程
        ProcessThreadPool.initPool();
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {

    }
}
